home *** CD-ROM | disk | FTP | other *** search
/ Know Your Baseball - The Greatest Player Resource / Know Your Baseball - Greatest Player.iso / Baseball / Director / KTGCST.CST / 00064_Script_button Scripts for other sections < prev    next >
Text File  |  1998-09-21  |  719b  |  26 lines

  1. on ThreeStateSkills
  2.   set mybutton = the clickon
  3.   set one = getat(gbuttonState, mybutton)
  4.   if one = 0 then 
  5.     set the membernum of sprite mybutton = the membernum of sprite mybutton +1
  6.     setat(gbuttonState, mybutton,2) 
  7.     set the blend of sprite (mybutton-20) = 100
  8.   end if
  9.   loadaudiomedia(mybutton)
  10. end
  11.  
  12.  
  13.  
  14. on resetSkills
  15.   set mybutton = the clickon
  16.   repeat with y = 31 down to 25
  17.     set thisone = getat(gbuttonState,y)
  18.     if thisone > 0 and y <> mybutton then 
  19.       set the blend of sprite y = 0
  20.       set the blend of sprite y-20 = 0
  21.       set the membernum of sprite y = the membernum of sprite y -1
  22.       setat(gbuttonState,y,0)
  23.       exit repeat
  24.     end if
  25.   end repeat 
  26. end